import http from '@/utils/request'
const URL = '/pigeon/t-in-slaugherhouse';

export function getAllInfoByPage(current,  limit) {
  return http({
      url:`${URL}/getPageTO/${current}/${limit}`,
      method: 'get',
  })
}

//通过id删除订单
export function deleteOrder(id) {
  return http({
  url: `${URL}/deleteTsById/${id}`,
  method:'delete'
})
}

// 根据批次号查询数据
export function getInfoByBatch(id) {
  return http({
      url:`${URL}/list_sh/${id}`,
      method: 'get',
  })
}
//提交入库单
export function AddOrder(data) {
  return http({
      url:`/pigeon/t-in-info-slaugherhouse/saveTs`,
      method: 'post',
      data
  })
}
// 通过id展示订单信息
export function showDetails(id,current,pageSize) {
  return http({
  url: `${URL}/getTIn/${id}/${current}/${pageSize}`,
  method:'get'
})
}
